<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.grep.web.IndexService,java.util.*,com.grep.extra.dao.impl.WebSiteDAOSQL"%> 
<%@ include file="/common/taglibs.jsp"%>
<%
request.setCharacterEncoding("UTF-8");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String sitename = request.getParameter("sitename");
WebSiteDAOSQL webSiteDaoSql = new WebSiteDAOSQL();
//方法返回值作为返回值返回到页面
boolean issuccess = webSiteDaoSql.DeleteWebSiteBySitename(sitename);
if(issuccess){
	response.getWriter().println("删除成功");	
}else{
	response.getWriter().println("删除失败");
}
 
%>